﻿using RxxAdmin.Model.RootTkey;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RxxAdmin.Model.Entity;
/// <summary>
/// 用户信息表
/// </summary>
[SugarTable("SysUser", "用户表")] //('数据库表名'，'数据库表备注')
public class SysUser : SysRootEntityTkey<int>
{
    /// <summary>
    /// 登录账号
    /// </summary>
    [SugarColumn(Length = 200, IsNullable = true, ColumnDescription = "登录账号")]
    public string? LoginName { get; set; }
    /// <summary>
    /// 登录密码
    /// </summary>
    [SugarColumn(Length = 200, IsNullable = true)]
    public string? LoginPWD { get; set; }

    /// <summary>
    /// 真实姓名
    /// </summary>
    [SugarColumn(Length = 200, IsNullable = true)]
    public string? RealName { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    public int Status { get; set; }

    [SqlSugar.SugarColumn(IsIgnore = true)]
    public List<int>? RoleIds { get; set; }
    [SqlSugar.SugarColumn(IsIgnore = true)]
    public List<string>? RoleNames { get; set; }
}
